<?php
	/**
	 * This is a MetaControl class, providing a QForm or QPanel access to event handlers
	 * and QControls to perform the Create, Edit, and Delete functionality
	 * of the MantisProjectTable class.  This code-generated class
	 * contains all the basic elements to help a QPanel or QForm display an HTML form that can
	 * manipulate a single MantisProjectTable object.
	 *
	 * To take advantage of some (or all) of these control objects, you
	 * must create a new QForm or QPanel which instantiates a MantisProjectTableMetaControl
	 * class.
	 *
	 * Any and all changes to this file will be overwritten with any subsequent
	 * code re-generation.
	 *
	 * @package My QCubed Application
	 * @subpackage MetaControls
	 * @property-read MantisProjectTable $MantisProjectTable the actual MantisProjectTable data class being edited
	 * @property QLabel $IdControl
	 * @property-read QLabel $IdLabel
	 * @property QTextBox $NameControl
	 * @property-read QLabel $NameLabel
	 * @property QIntegerTextBox $StatusControl
	 * @property-read QLabel $StatusLabel
	 * @property QIntegerTextBox $EnabledControl
	 * @property-read QLabel $EnabledLabel
	 * @property QIntegerTextBox $ViewStateControl
	 * @property-read QLabel $ViewStateLabel
	 * @property QIntegerTextBox $AccessMinControl
	 * @property-read QLabel $AccessMinLabel
	 * @property QTextBox $FilePathControl
	 * @property-read QLabel $FilePathLabel
	 * @property QTextBox $DescriptionControl
	 * @property-read QLabel $DescriptionLabel
	 * @property QIntegerTextBox $CategoryIdControl
	 * @property-read QLabel $CategoryIdLabel
	 * @property QIntegerTextBox $InheritGlobalControl
	 * @property-read QLabel $InheritGlobalLabel
	 * @property QTextBox $SvnPathControl
	 * @property-read QLabel $SvnPathLabel
	 * @property QTextBox $FtpUrlControl
	 * @property-read QLabel $FtpUrlLabel
	 * @property QTextBox $FtpWwwPathControl
	 * @property-read QLabel $FtpWwwPathLabel
	 * @property QTextBox $FtpUserControl
	 * @property-read QLabel $FtpUserLabel
	 * @property QTextBox $SvnWwwPathControl
	 * @property-read QLabel $SvnWwwPathLabel
	 * @property QTextBox $FtpPassControl
	 * @property-read QLabel $FtpPassLabel
	 * @property-read string $TitleVerb a verb indicating whether or not this is being edited or created
	 * @property-read boolean $EditMode a boolean indicating whether or not this is being edited or created
	 */

	class MantisProjectTableMetaControlGen extends QBaseClass {
		// General Variables
		/**
		 * @var MantisProjectTable objMantisProjectTable
		 * @access protected
		 */
		protected $objMantisProjectTable;
		/**
		 * @var QForm|QControl objParentObject
		 * @access protected
		 */
		protected $objParentObject;
		/**
		 * @var string strTitleVerb
		 * @access protected
		 */
		protected $strTitleVerb;
		/**
		 * @var boolean blnEditMode
		 * @access protected
		 */
		protected $blnEditMode;

		// Controls that allow the editing of MantisProjectTable's individual data fields
		/**
		 * @var QLabel lblId
		 * @access protected
		 */
		protected $lblId;
		/**
		 * @var QTextBox txtName
		 * @access protected
		 */
		protected $txtName;
		/**
		 * @var QIntegerTextBox txtStatus
		 * @access protected
		 */
		protected $txtStatus;
		/**
		 * @var QIntegerTextBox txtEnabled
		 * @access protected
		 */
		protected $txtEnabled;
		/**
		 * @var QIntegerTextBox txtViewState
		 * @access protected
		 */
		protected $txtViewState;
		/**
		 * @var QIntegerTextBox txtAccessMin
		 * @access protected
		 */
		protected $txtAccessMin;
		/**
		 * @var QTextBox txtFilePath
		 * @access protected
		 */
		protected $txtFilePath;
		/**
		 * @var QTextBox txtDescription
		 * @access protected
		 */
		protected $txtDescription;
		/**
		 * @var QIntegerTextBox txtCategoryId
		 * @access protected
		 */
		protected $txtCategoryId;
		/**
		 * @var QIntegerTextBox txtInheritGlobal
		 * @access protected
		 */
		protected $txtInheritGlobal;
		/**
		 * @var QTextBox txtSvnPath
		 * @access protected
		 */
		protected $txtSvnPath;
		/**
		 * @var QTextBox txtFtpUrl
		 * @access protected
		 */
		protected $txtFtpUrl;
		/**
		 * @var QTextBox txtFtpWwwPath
		 * @access protected
		 */
		protected $txtFtpWwwPath;
		/**
		 * @var QTextBox txtFtpUser
		 * @access protected
		 */
		protected $txtFtpUser;
		/**
		 * @var QTextBox txtSvnWwwPath
		 * @access protected
		 */
		protected $txtSvnWwwPath;
		/**
		 * @var QTextBox txtFtpPass
		 * @access protected
		 */
		protected $txtFtpPass;

		// Controls that allow the viewing of MantisProjectTable's individual data fields
		/**
		 * @var QLabel lblName
		 * @access protected
		 */
		protected $lblName;
		/**
		 * @var QLabel lblStatus
		 * @access protected
		 */
		protected $lblStatus;
		/**
		 * @var QLabel lblEnabled
		 * @access protected
		 */
		protected $lblEnabled;
		/**
		 * @var QLabel lblViewState
		 * @access protected
		 */
		protected $lblViewState;
		/**
		 * @var QLabel lblAccessMin
		 * @access protected
		 */
		protected $lblAccessMin;
		/**
		 * @var QLabel lblFilePath
		 * @access protected
		 */
		protected $lblFilePath;
		/**
		 * @var QLabel lblDescription
		 * @access protected
		 */
		protected $lblDescription;
		/**
		 * @var QLabel lblCategoryId
		 * @access protected
		 */
		protected $lblCategoryId;
		/**
		 * @var QLabel lblInheritGlobal
		 * @access protected
		 */
		protected $lblInheritGlobal;
		/**
		 * @var QLabel lblSvnPath
		 * @access protected
		 */
		protected $lblSvnPath;
		/**
		 * @var QLabel lblFtpUrl
		 * @access protected
		 */
		protected $lblFtpUrl;
		/**
		 * @var QLabel lblFtpWwwPath
		 * @access protected
		 */
		protected $lblFtpWwwPath;
		/**
		 * @var QLabel lblFtpUser
		 * @access protected
		 */
		protected $lblFtpUser;
		/**
		 * @var QLabel lblSvnWwwPath
		 * @access protected
		 */
		protected $lblSvnWwwPath;
		/**
		 * @var QLabel lblFtpPass
		 * @access protected
		 */
		protected $lblFtpPass;

		// QListBox Controls (if applicable) to edit Unique ReverseReferences and ManyToMany References

		// QLabel Controls (if applicable) to view Unique ReverseReferences and ManyToMany References


		/**
		 * Main constructor.  Constructor OR static create methods are designed to be called in either
		 * a parent QPanel or the main QForm when wanting to create a
		 * MantisProjectTableMetaControl to edit a single MantisProjectTable object within the
		 * QPanel or QForm.
		 *
		 * This constructor takes in a single MantisProjectTable object, while any of the static
		 * create methods below can be used to construct based off of individual PK ID(s).
		 *
		 * @param mixed $objParentObject QForm or QPanel which will be using this MantisProjectTableMetaControl
		 * @param MantisProjectTable $objMantisProjectTable new or existing MantisProjectTable object
		 */
		 public function __construct($objParentObject, MantisProjectTable $objMantisProjectTable) {
			// Setup Parent Object (e.g. QForm or QPanel which will be using this MantisProjectTableMetaControl)
			$this->objParentObject = $objParentObject;

			// Setup linked MantisProjectTable object
			$this->objMantisProjectTable = $objMantisProjectTable;

			// Figure out if we're Editing or Creating New
			if ($this->objMantisProjectTable->__Restored) {
				$this->strTitleVerb = QApplication::Translate('Edit');
				$this->blnEditMode = true;
			} else {
				$this->strTitleVerb = QApplication::Translate('Create');
				$this->blnEditMode = false;
			}
		 }

		/**
		 * Static Helper Method to Create using PK arguments
		 * You must pass in the PK arguments on an object to load, or leave it blank to create a new one.
		 * If you want to load via QueryString or PathInfo, use the CreateFromQueryString or CreateFromPathInfo
		 * static helper methods.  Finally, specify a CreateType to define whether or not we are only allowed to
		 * edit, or if we are also allowed to create a new one, etc.
		 *
		 * @param mixed $objParentObject QForm or QPanel which will be using this MantisProjectTableMetaControl
		 * @param integer $intId primary key value
		 * @param QMetaControlCreateType $intCreateType rules governing MantisProjectTable object creation - defaults to CreateOrEdit
 		 * @return MantisProjectTableMetaControl
		 */
		public static function Create($objParentObject, $intId = null, $intCreateType = QMetaControlCreateType::CreateOrEdit) {
			// Attempt to Load from PK Arguments
			if (strlen($intId)) {
				$objMantisProjectTable = MantisProjectTable::Load($intId);

				// MantisProjectTable was found -- return it!
				if ($objMantisProjectTable)
					return new MantisProjectTableMetaControl($objParentObject, $objMantisProjectTable);

				// If CreateOnRecordNotFound not specified, throw an exception
				else if ($intCreateType != QMetaControlCreateType::CreateOnRecordNotFound)
					throw new QCallerException('Could not find a MantisProjectTable object with PK arguments: ' . $intId);

			// If EditOnly is specified, throw an exception
			} else if ($intCreateType == QMetaControlCreateType::EditOnly)
				throw new QCallerException('No PK arguments specified');

			// If we are here, then we need to create a new record
			return new MantisProjectTableMetaControl($objParentObject, new MantisProjectTable());
		}

		/**
		 * Static Helper Method to Create using PathInfo arguments
		 *
		 * @param mixed $objParentObject QForm or QPanel which will be using this MantisProjectTableMetaControl
		 * @param QMetaControlCreateType $intCreateType rules governing MantisProjectTable object creation - defaults to CreateOrEdit
		 * @return MantisProjectTableMetaControl
		 */
		public static function CreateFromPathInfo($objParentObject, $intCreateType = QMetaControlCreateType::CreateOrEdit) {
			$intId = QApplication::PathInfo(0);
			return MantisProjectTableMetaControl::Create($objParentObject, $intId, $intCreateType);
		}

		/**
		 * Static Helper Method to Create using QueryString arguments
		 *
		 * @param mixed $objParentObject QForm or QPanel which will be using this MantisProjectTableMetaControl
		 * @param QMetaControlCreateType $intCreateType rules governing MantisProjectTable object creation - defaults to CreateOrEdit
		 * @return MantisProjectTableMetaControl
		 */
		public static function CreateFromQueryString($objParentObject, $intCreateType = QMetaControlCreateType::CreateOrEdit) {
			$intId = QApplication::QueryString('intId');
			return MantisProjectTableMetaControl::Create($objParentObject, $intId, $intCreateType);
		}



		///////////////////////////////////////////////
		// PUBLIC CREATE and REFRESH METHODS
		///////////////////////////////////////////////

		/**
		 * Create and setup QLabel lblId
		 * @param string $strControlId optional ControlId to use
		 * @return QLabel
		 */
		public function lblId_Create($strControlId = null) {
			$this->lblId = new QLabel($this->objParentObject, $strControlId);
			$this->lblId->Name = QApplication::Translate('Id');
			if ($this->blnEditMode)
				$this->lblId->Text = $this->objMantisProjectTable->Id;
			else
				$this->lblId->Text = 'N/A';
			return $this->lblId;
		}

		/**
		 * Create and setup QTextBox txtName
		 * @param string $strControlId optional ControlId to use
		 * @return QTextBox
		 */
		public function txtName_Create($strControlId = null) {
			$this->txtName = new QTextBox($this->objParentObject, $strControlId);
			$this->txtName->Name = QApplication::Translate('Name');
			$this->txtName->Text = $this->objMantisProjectTable->Name;
			$this->txtName->Required = true;
			$this->txtName->MaxLength = MantisProjectTable::NameMaxLength;
			return $this->txtName;
		}

		/**
		 * Create and setup QLabel lblName
		 * @param string $strControlId optional ControlId to use
		 * @return QLabel
		 */
		public function lblName_Create($strControlId = null) {
			$this->lblName = new QLabel($this->objParentObject, $strControlId);
			$this->lblName->Name = QApplication::Translate('Name');
			$this->lblName->Text = $this->objMantisProjectTable->Name;
			$this->lblName->Required = true;
			return $this->lblName;
		}

		/**
		 * Create and setup QIntegerTextBox txtStatus
		 * @param string $strControlId optional ControlId to use
		 * @return QIntegerTextBox
		 */
		public function txtStatus_Create($strControlId = null) {
			$this->txtStatus = new QIntegerTextBox($this->objParentObject, $strControlId);
			$this->txtStatus->Name = QApplication::Translate('Status');
			$this->txtStatus->Text = $this->objMantisProjectTable->Status;
			$this->txtStatus->Required = true;
			return $this->txtStatus;
		}

		/**
		 * Create and setup QLabel lblStatus
		 * @param string $strControlId optional ControlId to use
		 * @param string $strFormat optional sprintf format to use
		 * @return QLabel
		 */
		public function lblStatus_Create($strControlId = null, $strFormat = null) {
			$this->lblStatus = new QLabel($this->objParentObject, $strControlId);
			$this->lblStatus->Name = QApplication::Translate('Status');
			$this->lblStatus->Text = $this->objMantisProjectTable->Status;
			$this->lblStatus->Required = true;
			$this->lblStatus->Format = $strFormat;
			return $this->lblStatus;
		}

		/**
		 * Create and setup QIntegerTextBox txtEnabled
		 * @param string $strControlId optional ControlId to use
		 * @return QIntegerTextBox
		 */
		public function txtEnabled_Create($strControlId = null) {
			$this->txtEnabled = new QIntegerTextBox($this->objParentObject, $strControlId);
			$this->txtEnabled->Name = QApplication::Translate('Enabled');
			$this->txtEnabled->Text = $this->objMantisProjectTable->Enabled;
			$this->txtEnabled->Required = true;
			return $this->txtEnabled;
		}

		/**
		 * Create and setup QLabel lblEnabled
		 * @param string $strControlId optional ControlId to use
		 * @param string $strFormat optional sprintf format to use
		 * @return QLabel
		 */
		public function lblEnabled_Create($strControlId = null, $strFormat = null) {
			$this->lblEnabled = new QLabel($this->objParentObject, $strControlId);
			$this->lblEnabled->Name = QApplication::Translate('Enabled');
			$this->lblEnabled->Text = $this->objMantisProjectTable->Enabled;
			$this->lblEnabled->Required = true;
			$this->lblEnabled->Format = $strFormat;
			return $this->lblEnabled;
		}

		/**
		 * Create and setup QIntegerTextBox txtViewState
		 * @param string $strControlId optional ControlId to use
		 * @return QIntegerTextBox
		 */
		public function txtViewState_Create($strControlId = null) {
			$this->txtViewState = new QIntegerTextBox($this->objParentObject, $strControlId);
			$this->txtViewState->Name = QApplication::Translate('View State');
			$this->txtViewState->Text = $this->objMantisProjectTable->ViewState;
			$this->txtViewState->Required = true;
			return $this->txtViewState;
		}

		/**
		 * Create and setup QLabel lblViewState
		 * @param string $strControlId optional ControlId to use
		 * @param string $strFormat optional sprintf format to use
		 * @return QLabel
		 */
		public function lblViewState_Create($strControlId = null, $strFormat = null) {
			$this->lblViewState = new QLabel($this->objParentObject, $strControlId);
			$this->lblViewState->Name = QApplication::Translate('View State');
			$this->lblViewState->Text = $this->objMantisProjectTable->ViewState;
			$this->lblViewState->Required = true;
			$this->lblViewState->Format = $strFormat;
			return $this->lblViewState;
		}

		/**
		 * Create and setup QIntegerTextBox txtAccessMin
		 * @param string $strControlId optional ControlId to use
		 * @return QIntegerTextBox
		 */
		public function txtAccessMin_Create($strControlId = null) {
			$this->txtAccessMin = new QIntegerTextBox($this->objParentObject, $strControlId);
			$this->txtAccessMin->Name = QApplication::Translate('Access Min');
			$this->txtAccessMin->Text = $this->objMantisProjectTable->AccessMin;
			$this->txtAccessMin->Required = true;
			return $this->txtAccessMin;
		}

		/**
		 * Create and setup QLabel lblAccessMin
		 * @param string $strControlId optional ControlId to use
		 * @param string $strFormat optional sprintf format to use
		 * @return QLabel
		 */
		public function lblAccessMin_Create($strControlId = null, $strFormat = null) {
			$this->lblAccessMin = new QLabel($this->objParentObject, $strControlId);
			$this->lblAccessMin->Name = QApplication::Translate('Access Min');
			$this->lblAccessMin->Text = $this->objMantisProjectTable->AccessMin;
			$this->lblAccessMin->Required = true;
			$this->lblAccessMin->Format = $strFormat;
			return $this->lblAccessMin;
		}

		/**
		 * Create and setup QTextBox txtFilePath
		 * @param string $strControlId optional ControlId to use
		 * @return QTextBox
		 */
		public function txtFilePath_Create($strControlId = null) {
			$this->txtFilePath = new QTextBox($this->objParentObject, $strControlId);
			$this->txtFilePath->Name = QApplication::Translate('File Path');
			$this->txtFilePath->Text = $this->objMantisProjectTable->FilePath;
			$this->txtFilePath->Required = true;
			$this->txtFilePath->MaxLength = MantisProjectTable::FilePathMaxLength;
			return $this->txtFilePath;
		}

		/**
		 * Create and setup QLabel lblFilePath
		 * @param string $strControlId optional ControlId to use
		 * @return QLabel
		 */
		public function lblFilePath_Create($strControlId = null) {
			$this->lblFilePath = new QLabel($this->objParentObject, $strControlId);
			$this->lblFilePath->Name = QApplication::Translate('File Path');
			$this->lblFilePath->Text = $this->objMantisProjectTable->FilePath;
			$this->lblFilePath->Required = true;
			return $this->lblFilePath;
		}

		/**
		 * Create and setup QTextBox txtDescription
		 * @param string $strControlId optional ControlId to use
		 * @return QTextBox
		 */
		public function txtDescription_Create($strControlId = null) {
			$this->txtDescription = new QTextBox($this->objParentObject, $strControlId);
			$this->txtDescription->Name = QApplication::Translate('Description');
			$this->txtDescription->Text = $this->objMantisProjectTable->Description;
			$this->txtDescription->Required = true;
			$this->txtDescription->TextMode = QTextMode::MultiLine;
			return $this->txtDescription;
		}

		/**
		 * Create and setup QLabel lblDescription
		 * @param string $strControlId optional ControlId to use
		 * @return QLabel
		 */
		public function lblDescription_Create($strControlId = null) {
			$this->lblDescription = new QLabel($this->objParentObject, $strControlId);
			$this->lblDescription->Name = QApplication::Translate('Description');
			$this->lblDescription->Text = $this->objMantisProjectTable->Description;
			$this->lblDescription->Required = true;
			return $this->lblDescription;
		}

		/**
		 * Create and setup QIntegerTextBox txtCategoryId
		 * @param string $strControlId optional ControlId to use
		 * @return QIntegerTextBox
		 */
		public function txtCategoryId_Create($strControlId = null) {
			$this->txtCategoryId = new QIntegerTextBox($this->objParentObject, $strControlId);
			$this->txtCategoryId->Name = QApplication::Translate('Category Id');
			$this->txtCategoryId->Text = $this->objMantisProjectTable->CategoryId;
			$this->txtCategoryId->Required = true;
			return $this->txtCategoryId;
		}

		/**
		 * Create and setup QLabel lblCategoryId
		 * @param string $strControlId optional ControlId to use
		 * @param string $strFormat optional sprintf format to use
		 * @return QLabel
		 */
		public function lblCategoryId_Create($strControlId = null, $strFormat = null) {
			$this->lblCategoryId = new QLabel($this->objParentObject, $strControlId);
			$this->lblCategoryId->Name = QApplication::Translate('Category Id');
			$this->lblCategoryId->Text = $this->objMantisProjectTable->CategoryId;
			$this->lblCategoryId->Required = true;
			$this->lblCategoryId->Format = $strFormat;
			return $this->lblCategoryId;
		}

		/**
		 * Create and setup QIntegerTextBox txtInheritGlobal
		 * @param string $strControlId optional ControlId to use
		 * @return QIntegerTextBox
		 */
		public function txtInheritGlobal_Create($strControlId = null) {
			$this->txtInheritGlobal = new QIntegerTextBox($this->objParentObject, $strControlId);
			$this->txtInheritGlobal->Name = QApplication::Translate('Inherit Global');
			$this->txtInheritGlobal->Text = $this->objMantisProjectTable->InheritGlobal;
			$this->txtInheritGlobal->Required = true;
			return $this->txtInheritGlobal;
		}

		/**
		 * Create and setup QLabel lblInheritGlobal
		 * @param string $strControlId optional ControlId to use
		 * @param string $strFormat optional sprintf format to use
		 * @return QLabel
		 */
		public function lblInheritGlobal_Create($strControlId = null, $strFormat = null) {
			$this->lblInheritGlobal = new QLabel($this->objParentObject, $strControlId);
			$this->lblInheritGlobal->Name = QApplication::Translate('Inherit Global');
			$this->lblInheritGlobal->Text = $this->objMantisProjectTable->InheritGlobal;
			$this->lblInheritGlobal->Required = true;
			$this->lblInheritGlobal->Format = $strFormat;
			return $this->lblInheritGlobal;
		}

		/**
		 * Create and setup QTextBox txtSvnPath
		 * @param string $strControlId optional ControlId to use
		 * @return QTextBox
		 */
		public function txtSvnPath_Create($strControlId = null) {
			$this->txtSvnPath = new QTextBox($this->objParentObject, $strControlId);
			$this->txtSvnPath->Name = QApplication::Translate('Svn Path');
			$this->txtSvnPath->Text = $this->objMantisProjectTable->SvnPath;
			$this->txtSvnPath->MaxLength = MantisProjectTable::SvnPathMaxLength;
			return $this->txtSvnPath;
		}

		/**
		 * Create and setup QLabel lblSvnPath
		 * @param string $strControlId optional ControlId to use
		 * @return QLabel
		 */
		public function lblSvnPath_Create($strControlId = null) {
			$this->lblSvnPath = new QLabel($this->objParentObject, $strControlId);
			$this->lblSvnPath->Name = QApplication::Translate('Svn Path');
			$this->lblSvnPath->Text = $this->objMantisProjectTable->SvnPath;
			return $this->lblSvnPath;
		}

		/**
		 * Create and setup QTextBox txtFtpUrl
		 * @param string $strControlId optional ControlId to use
		 * @return QTextBox
		 */
		public function txtFtpUrl_Create($strControlId = null) {
			$this->txtFtpUrl = new QTextBox($this->objParentObject, $strControlId);
			$this->txtFtpUrl->Name = QApplication::Translate('Ftp Url');
			$this->txtFtpUrl->Text = $this->objMantisProjectTable->FtpUrl;
			$this->txtFtpUrl->MaxLength = MantisProjectTable::FtpUrlMaxLength;
			return $this->txtFtpUrl;
		}

		/**
		 * Create and setup QLabel lblFtpUrl
		 * @param string $strControlId optional ControlId to use
		 * @return QLabel
		 */
		public function lblFtpUrl_Create($strControlId = null) {
			$this->lblFtpUrl = new QLabel($this->objParentObject, $strControlId);
			$this->lblFtpUrl->Name = QApplication::Translate('Ftp Url');
			$this->lblFtpUrl->Text = $this->objMantisProjectTable->FtpUrl;
			return $this->lblFtpUrl;
		}

		/**
		 * Create and setup QTextBox txtFtpWwwPath
		 * @param string $strControlId optional ControlId to use
		 * @return QTextBox
		 */
		public function txtFtpWwwPath_Create($strControlId = null) {
			$this->txtFtpWwwPath = new QTextBox($this->objParentObject, $strControlId);
			$this->txtFtpWwwPath->Name = QApplication::Translate('Ftp Www Path');
			$this->txtFtpWwwPath->Text = $this->objMantisProjectTable->FtpWwwPath;
			$this->txtFtpWwwPath->MaxLength = MantisProjectTable::FtpWwwPathMaxLength;
			return $this->txtFtpWwwPath;
		}

		/**
		 * Create and setup QLabel lblFtpWwwPath
		 * @param string $strControlId optional ControlId to use
		 * @return QLabel
		 */
		public function lblFtpWwwPath_Create($strControlId = null) {
			$this->lblFtpWwwPath = new QLabel($this->objParentObject, $strControlId);
			$this->lblFtpWwwPath->Name = QApplication::Translate('Ftp Www Path');
			$this->lblFtpWwwPath->Text = $this->objMantisProjectTable->FtpWwwPath;
			return $this->lblFtpWwwPath;
		}

		/**
		 * Create and setup QTextBox txtFtpUser
		 * @param string $strControlId optional ControlId to use
		 * @return QTextBox
		 */
		public function txtFtpUser_Create($strControlId = null) {
			$this->txtFtpUser = new QTextBox($this->objParentObject, $strControlId);
			$this->txtFtpUser->Name = QApplication::Translate('Ftp User');
			$this->txtFtpUser->Text = $this->objMantisProjectTable->FtpUser;
			$this->txtFtpUser->MaxLength = MantisProjectTable::FtpUserMaxLength;
			return $this->txtFtpUser;
		}

		/**
		 * Create and setup QLabel lblFtpUser
		 * @param string $strControlId optional ControlId to use
		 * @return QLabel
		 */
		public function lblFtpUser_Create($strControlId = null) {
			$this->lblFtpUser = new QLabel($this->objParentObject, $strControlId);
			$this->lblFtpUser->Name = QApplication::Translate('Ftp User');
			$this->lblFtpUser->Text = $this->objMantisProjectTable->FtpUser;
			return $this->lblFtpUser;
		}

		/**
		 * Create and setup QTextBox txtSvnWwwPath
		 * @param string $strControlId optional ControlId to use
		 * @return QTextBox
		 */
		public function txtSvnWwwPath_Create($strControlId = null) {
			$this->txtSvnWwwPath = new QTextBox($this->objParentObject, $strControlId);
			$this->txtSvnWwwPath->Name = QApplication::Translate('Svn Www Path');
			$this->txtSvnWwwPath->Text = $this->objMantisProjectTable->SvnWwwPath;
			$this->txtSvnWwwPath->MaxLength = MantisProjectTable::SvnWwwPathMaxLength;
			return $this->txtSvnWwwPath;
		}

		/**
		 * Create and setup QLabel lblSvnWwwPath
		 * @param string $strControlId optional ControlId to use
		 * @return QLabel
		 */
		public function lblSvnWwwPath_Create($strControlId = null) {
			$this->lblSvnWwwPath = new QLabel($this->objParentObject, $strControlId);
			$this->lblSvnWwwPath->Name = QApplication::Translate('Svn Www Path');
			$this->lblSvnWwwPath->Text = $this->objMantisProjectTable->SvnWwwPath;
			return $this->lblSvnWwwPath;
		}

		/**
		 * Create and setup QTextBox txtFtpPass
		 * @param string $strControlId optional ControlId to use
		 * @return QTextBox
		 */
		public function txtFtpPass_Create($strControlId = null) {
			$this->txtFtpPass = new QTextBox($this->objParentObject, $strControlId);
			$this->txtFtpPass->Name = QApplication::Translate('Ftp Pass');
			$this->txtFtpPass->Text = $this->objMantisProjectTable->FtpPass;
			$this->txtFtpPass->MaxLength = MantisProjectTable::FtpPassMaxLength;
			return $this->txtFtpPass;
		}

		/**
		 * Create and setup QLabel lblFtpPass
		 * @param string $strControlId optional ControlId to use
		 * @return QLabel
		 */
		public function lblFtpPass_Create($strControlId = null) {
			$this->lblFtpPass = new QLabel($this->objParentObject, $strControlId);
			$this->lblFtpPass->Name = QApplication::Translate('Ftp Pass');
			$this->lblFtpPass->Text = $this->objMantisProjectTable->FtpPass;
			return $this->lblFtpPass;
		}



		/**
		 * Refresh this MetaControl with Data from the local MantisProjectTable object.
		 * @param boolean $blnReload reload MantisProjectTable from the database
		 * @return void
		 */
		public function Refresh($blnReload = false) {
			if ($blnReload)
				$this->objMantisProjectTable->Reload();

			if ($this->lblId) if ($this->blnEditMode) $this->lblId->Text = $this->objMantisProjectTable->Id;

			if ($this->txtName) $this->txtName->Text = $this->objMantisProjectTable->Name;
			if ($this->lblName) $this->lblName->Text = $this->objMantisProjectTable->Name;

			if ($this->txtStatus) $this->txtStatus->Text = $this->objMantisProjectTable->Status;
			if ($this->lblStatus) $this->lblStatus->Text = $this->objMantisProjectTable->Status;

			if ($this->txtEnabled) $this->txtEnabled->Text = $this->objMantisProjectTable->Enabled;
			if ($this->lblEnabled) $this->lblEnabled->Text = $this->objMantisProjectTable->Enabled;

			if ($this->txtViewState) $this->txtViewState->Text = $this->objMantisProjectTable->ViewState;
			if ($this->lblViewState) $this->lblViewState->Text = $this->objMantisProjectTable->ViewState;

			if ($this->txtAccessMin) $this->txtAccessMin->Text = $this->objMantisProjectTable->AccessMin;
			if ($this->lblAccessMin) $this->lblAccessMin->Text = $this->objMantisProjectTable->AccessMin;

			if ($this->txtFilePath) $this->txtFilePath->Text = $this->objMantisProjectTable->FilePath;
			if ($this->lblFilePath) $this->lblFilePath->Text = $this->objMantisProjectTable->FilePath;

			if ($this->txtDescription) $this->txtDescription->Text = $this->objMantisProjectTable->Description;
			if ($this->lblDescription) $this->lblDescription->Text = $this->objMantisProjectTable->Description;

			if ($this->txtCategoryId) $this->txtCategoryId->Text = $this->objMantisProjectTable->CategoryId;
			if ($this->lblCategoryId) $this->lblCategoryId->Text = $this->objMantisProjectTable->CategoryId;

			if ($this->txtInheritGlobal) $this->txtInheritGlobal->Text = $this->objMantisProjectTable->InheritGlobal;
			if ($this->lblInheritGlobal) $this->lblInheritGlobal->Text = $this->objMantisProjectTable->InheritGlobal;

			if ($this->txtSvnPath) $this->txtSvnPath->Text = $this->objMantisProjectTable->SvnPath;
			if ($this->lblSvnPath) $this->lblSvnPath->Text = $this->objMantisProjectTable->SvnPath;

			if ($this->txtFtpUrl) $this->txtFtpUrl->Text = $this->objMantisProjectTable->FtpUrl;
			if ($this->lblFtpUrl) $this->lblFtpUrl->Text = $this->objMantisProjectTable->FtpUrl;

			if ($this->txtFtpWwwPath) $this->txtFtpWwwPath->Text = $this->objMantisProjectTable->FtpWwwPath;
			if ($this->lblFtpWwwPath) $this->lblFtpWwwPath->Text = $this->objMantisProjectTable->FtpWwwPath;

			if ($this->txtFtpUser) $this->txtFtpUser->Text = $this->objMantisProjectTable->FtpUser;
			if ($this->lblFtpUser) $this->lblFtpUser->Text = $this->objMantisProjectTable->FtpUser;

			if ($this->txtSvnWwwPath) $this->txtSvnWwwPath->Text = $this->objMantisProjectTable->SvnWwwPath;
			if ($this->lblSvnWwwPath) $this->lblSvnWwwPath->Text = $this->objMantisProjectTable->SvnWwwPath;

			if ($this->txtFtpPass) $this->txtFtpPass->Text = $this->objMantisProjectTable->FtpPass;
			if ($this->lblFtpPass) $this->lblFtpPass->Text = $this->objMantisProjectTable->FtpPass;

		}



		///////////////////////////////////////////////
		// PROTECTED UPDATE METHODS for ManyToManyReferences (if any)
		///////////////////////////////////////////////





		///////////////////////////////////////////////
		// PUBLIC MANTISPROJECTTABLE OBJECT MANIPULATORS
		///////////////////////////////////////////////

		/**
		 * This will save this object's MantisProjectTable instance,
		 * updating only the fields which have had a control created for it.
		 */
		public function SaveMantisProjectTable() {
			try {
				// Update any fields for controls that have been created
				if ($this->txtName) $this->objMantisProjectTable->Name = $this->txtName->Text;
				if ($this->txtStatus) $this->objMantisProjectTable->Status = $this->txtStatus->Text;
				if ($this->txtEnabled) $this->objMantisProjectTable->Enabled = $this->txtEnabled->Text;
				if ($this->txtViewState) $this->objMantisProjectTable->ViewState = $this->txtViewState->Text;
				if ($this->txtAccessMin) $this->objMantisProjectTable->AccessMin = $this->txtAccessMin->Text;
				if ($this->txtFilePath) $this->objMantisProjectTable->FilePath = $this->txtFilePath->Text;
				if ($this->txtDescription) $this->objMantisProjectTable->Description = $this->txtDescription->Text;
				if ($this->txtCategoryId) $this->objMantisProjectTable->CategoryId = $this->txtCategoryId->Text;
				if ($this->txtInheritGlobal) $this->objMantisProjectTable->InheritGlobal = $this->txtInheritGlobal->Text;
				if ($this->txtSvnPath) $this->objMantisProjectTable->SvnPath = $this->txtSvnPath->Text;
				if ($this->txtFtpUrl) $this->objMantisProjectTable->FtpUrl = $this->txtFtpUrl->Text;
				if ($this->txtFtpWwwPath) $this->objMantisProjectTable->FtpWwwPath = $this->txtFtpWwwPath->Text;
				if ($this->txtFtpUser) $this->objMantisProjectTable->FtpUser = $this->txtFtpUser->Text;
				if ($this->txtSvnWwwPath) $this->objMantisProjectTable->SvnWwwPath = $this->txtSvnWwwPath->Text;
				if ($this->txtFtpPass) $this->objMantisProjectTable->FtpPass = $this->txtFtpPass->Text;

				// Update any UniqueReverseReferences (if any) for controls that have been created for it

				// Save the MantisProjectTable object
				$this->objMantisProjectTable->Save();

				// Finally, update any ManyToManyReferences (if any)
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * This will DELETE this object's MantisProjectTable instance from the database.
		 * It will also unassociate itself from any ManyToManyReferences.
		 */
		public function DeleteMantisProjectTable() {
			$this->objMantisProjectTable->Delete();
		}



		///////////////////////////////////////////////
		// PUBLIC GETTERS and SETTERS
		///////////////////////////////////////////////

		/**
		 * Override method to perform a property "Get"
		 * This will get the value of $strName
		 *
		 * @param string $strName Name of the property to get
		 * @return mixed
		 */
		public function __get($strName) {
			switch ($strName) {
				// General MetaControlVariables
				case 'MantisProjectTable': return $this->objMantisProjectTable;
				case 'TitleVerb': return $this->strTitleVerb;
				case 'EditMode': return $this->blnEditMode;

				// Controls that point to MantisProjectTable fields -- will be created dynamically if not yet created
				case 'IdControl':
					if (!$this->lblId) return $this->lblId_Create();
					return $this->lblId;
				case 'IdLabel':
					if (!$this->lblId) return $this->lblId_Create();
					return $this->lblId;
				case 'NameControl':
					if (!$this->txtName) return $this->txtName_Create();
					return $this->txtName;
				case 'NameLabel':
					if (!$this->lblName) return $this->lblName_Create();
					return $this->lblName;
				case 'StatusControl':
					if (!$this->txtStatus) return $this->txtStatus_Create();
					return $this->txtStatus;
				case 'StatusLabel':
					if (!$this->lblStatus) return $this->lblStatus_Create();
					return $this->lblStatus;
				case 'EnabledControl':
					if (!$this->txtEnabled) return $this->txtEnabled_Create();
					return $this->txtEnabled;
				case 'EnabledLabel':
					if (!$this->lblEnabled) return $this->lblEnabled_Create();
					return $this->lblEnabled;
				case 'ViewStateControl':
					if (!$this->txtViewState) return $this->txtViewState_Create();
					return $this->txtViewState;
				case 'ViewStateLabel':
					if (!$this->lblViewState) return $this->lblViewState_Create();
					return $this->lblViewState;
				case 'AccessMinControl':
					if (!$this->txtAccessMin) return $this->txtAccessMin_Create();
					return $this->txtAccessMin;
				case 'AccessMinLabel':
					if (!$this->lblAccessMin) return $this->lblAccessMin_Create();
					return $this->lblAccessMin;
				case 'FilePathControl':
					if (!$this->txtFilePath) return $this->txtFilePath_Create();
					return $this->txtFilePath;
				case 'FilePathLabel':
					if (!$this->lblFilePath) return $this->lblFilePath_Create();
					return $this->lblFilePath;
				case 'DescriptionControl':
					if (!$this->txtDescription) return $this->txtDescription_Create();
					return $this->txtDescription;
				case 'DescriptionLabel':
					if (!$this->lblDescription) return $this->lblDescription_Create();
					return $this->lblDescription;
				case 'CategoryIdControl':
					if (!$this->txtCategoryId) return $this->txtCategoryId_Create();
					return $this->txtCategoryId;
				case 'CategoryIdLabel':
					if (!$this->lblCategoryId) return $this->lblCategoryId_Create();
					return $this->lblCategoryId;
				case 'InheritGlobalControl':
					if (!$this->txtInheritGlobal) return $this->txtInheritGlobal_Create();
					return $this->txtInheritGlobal;
				case 'InheritGlobalLabel':
					if (!$this->lblInheritGlobal) return $this->lblInheritGlobal_Create();
					return $this->lblInheritGlobal;
				case 'SvnPathControl':
					if (!$this->txtSvnPath) return $this->txtSvnPath_Create();
					return $this->txtSvnPath;
				case 'SvnPathLabel':
					if (!$this->lblSvnPath) return $this->lblSvnPath_Create();
					return $this->lblSvnPath;
				case 'FtpUrlControl':
					if (!$this->txtFtpUrl) return $this->txtFtpUrl_Create();
					return $this->txtFtpUrl;
				case 'FtpUrlLabel':
					if (!$this->lblFtpUrl) return $this->lblFtpUrl_Create();
					return $this->lblFtpUrl;
				case 'FtpWwwPathControl':
					if (!$this->txtFtpWwwPath) return $this->txtFtpWwwPath_Create();
					return $this->txtFtpWwwPath;
				case 'FtpWwwPathLabel':
					if (!$this->lblFtpWwwPath) return $this->lblFtpWwwPath_Create();
					return $this->lblFtpWwwPath;
				case 'FtpUserControl':
					if (!$this->txtFtpUser) return $this->txtFtpUser_Create();
					return $this->txtFtpUser;
				case 'FtpUserLabel':
					if (!$this->lblFtpUser) return $this->lblFtpUser_Create();
					return $this->lblFtpUser;
				case 'SvnWwwPathControl':
					if (!$this->txtSvnWwwPath) return $this->txtSvnWwwPath_Create();
					return $this->txtSvnWwwPath;
				case 'SvnWwwPathLabel':
					if (!$this->lblSvnWwwPath) return $this->lblSvnWwwPath_Create();
					return $this->lblSvnWwwPath;
				case 'FtpPassControl':
					if (!$this->txtFtpPass) return $this->txtFtpPass_Create();
					return $this->txtFtpPass;
				case 'FtpPassLabel':
					if (!$this->lblFtpPass) return $this->lblFtpPass_Create();
					return $this->lblFtpPass;
				default:
					try {
						return parent::__get($strName);
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}
			}
		}

		/**
		 * Override method to perform a property "Set"
		 * This will set the property $strName to be $mixValue
		 *
		 * @param string $strName Name of the property to set
		 * @param string $mixValue New value of the property
		 * @return mixed
		 */
		public function __set($strName, $mixValue) {
			try {
				switch ($strName) {
					// Controls that point to MantisProjectTable fields
					case 'IdControl':
						return ($this->lblId = QType::Cast($mixValue, 'QControl'));
					case 'NameControl':
						return ($this->txtName = QType::Cast($mixValue, 'QControl'));
					case 'StatusControl':
						return ($this->txtStatus = QType::Cast($mixValue, 'QControl'));
					case 'EnabledControl':
						return ($this->txtEnabled = QType::Cast($mixValue, 'QControl'));
					case 'ViewStateControl':
						return ($this->txtViewState = QType::Cast($mixValue, 'QControl'));
					case 'AccessMinControl':
						return ($this->txtAccessMin = QType::Cast($mixValue, 'QControl'));
					case 'FilePathControl':
						return ($this->txtFilePath = QType::Cast($mixValue, 'QControl'));
					case 'DescriptionControl':
						return ($this->txtDescription = QType::Cast($mixValue, 'QControl'));
					case 'CategoryIdControl':
						return ($this->txtCategoryId = QType::Cast($mixValue, 'QControl'));
					case 'InheritGlobalControl':
						return ($this->txtInheritGlobal = QType::Cast($mixValue, 'QControl'));
					case 'SvnPathControl':
						return ($this->txtSvnPath = QType::Cast($mixValue, 'QControl'));
					case 'FtpUrlControl':
						return ($this->txtFtpUrl = QType::Cast($mixValue, 'QControl'));
					case 'FtpWwwPathControl':
						return ($this->txtFtpWwwPath = QType::Cast($mixValue, 'QControl'));
					case 'FtpUserControl':
						return ($this->txtFtpUser = QType::Cast($mixValue, 'QControl'));
					case 'SvnWwwPathControl':
						return ($this->txtSvnWwwPath = QType::Cast($mixValue, 'QControl'));
					case 'FtpPassControl':
						return ($this->txtFtpPass = QType::Cast($mixValue, 'QControl'));
					default:
						return parent::__set($strName, $mixValue);
				}
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}
	}
?>